<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../node_modules/react/umd/react.development.js"></script>
    <script src="../node_modules/react-dom/umd/react-dom.development.js"></script>
    <script src="../node_modules/babel-standalone/babel.min.js"></script>
  </head>
  <body>
    <div id="reactDom"></div>
    <script type="text/babel">
      // 无状态组件的创建方式
      function MyCom() {
        //   无状态组件的创建方式
        return <div>我是一个无状态组件</div>;
      }
      // 组件就是自定义标签
      // 调用组件
      let com = (
        <div>
          <MyCom />
          <MyCom />
        </div>
      );
      ReactDOM.render(com, document.getElementById("reactDom"));
    </script>
  </body>
</html>
